//
//  kqy2newViewController.m
//  百思不得姐os1
//
//  Created by kqy on 8/1/16.
//  Copyright © 2016 kqy. All rights reserved.
//

#import "kqy2newViewController.h"

@interface kqy2newViewController ()

@end

@implementation kqy2newViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kqyRandomColor;
    // Do any additional setup after loading the view.
    UIButton *newBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *image = [UIImage imageNamed:@"MainTagSubIcon"];
    UIImage *selectedImage = [UIImage imageNamed:@"MainTagSubIconClick"];
//    UIImage *originImage = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//    UIImage *originSelectedImage = [selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//    [newBtn setImage:originImage forState:UIControlStateNormal];
//    [newBtn setImage:originSelectedImage forState:UIControlStateHighlighted];
    [newBtn setImage:image forState:UIControlStateNormal];
    [newBtn setImage:selectedImage forState:UIControlStateHighlighted];
    [newBtn sizeToFit];
    [newBtn addTarget:self action:@selector(newClick) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:newBtn];
    
}
- (void) newClick {
    NSLog(@"new click");
}
//

@end
